{% extends "base.html" %}

{% block title %}Recharge{% endblock %}

{% block main_content %}
<div class="row">
    <form action="/recharge" class="form-horizontal span6 offset3 well" method="post">
        <fieldset>
            <legend>Recharge - more delicious desserts!</legend>
            <div class="control-group {% if message %}error{% endif %}">
                <label class="control-label" for="recharge-select">How much?</label>
                <div class="controls">
                    <select id="recharge-select" name="recharge-value">
                        {% for value in recharge_values %}
                        <option value="{{ value }}" {% if loop.index == 0 %}selected=""{% endif %}>{{ value }}</option>
                        {% endfor %}
                    </select>
                    {% if message %}<span class="help-inline">{{ message }}</span>{% endif %}
                </div>
            </div>
            <div class="form-actions">
                <input type="submit" class="button btn btn-primary" value="Recharge" name="" />
            </div>
        </fieldset>
    </form>
</div>
{% endblock %}
